package com.lj.dao;

import com.github.pagehelper.PageInfo;
import com.lj.entity.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
@Mapper
public interface EmpDao {
    List<Emp> QueryAllEmp();
    int AddEmp(Emp emp);
    Emp editEmp(@RequestParam("id") int id);
    int deleteEmp(@RequestParam("id")int id);
    int updateEmp(Emp emp);
}
